package com.zhiyume.service.util;

import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;


/**
 * @author
 * @createTime 2014-3-26 下午2:39:10
 * @description
 */
public class RegexUtil {
	
	public static void regPattern(String reg, String doc,Map<String,String> map){
		Pattern pattern = Pattern.compile(reg);
		Matcher matcher = pattern.matcher(doc);
		while(matcher.find()){
				map.put(matcher.group(1), matcher.group(2));
		}
	}
	
	

}
